ActiveX System Tray Icon v1.1 (build 20 June, 98 | File: STI.OCX | Size: 33,792 bytes)
By Great Beard.
E-mail: grtbeard@geocities.com
Homepage: http://www.geocities.com/SiliconValley/Haven/4274
Download page: http://www.geocities.com/SiliconValley/Haven/4274/download.htm
If you find any changes in this document or others, please, e-mail me where you got that document!
This HTML-based help is designed for MS Internet Explorer 4.01 and higher versions (like MSIE 5.0 Preview 1)

Description: This control allows you to display icon in the system tray. You could set icon in the Icon property, or load it from your file (ico, cur, ani). Note: ANI - loads only first frame in this version, but you could make it blink. Also you could choose predefined windows icons and cursors... Events support. Help file is included.

Properties    Methods    Events    System requirements     History (bugs, updates)

Properties:

Property

Data type Description
BlinkDelay Long Defines the delay for blinking sequence.
Icon (Icon) This Icon is displayed in the system tray.
IconFile String Contains the file name (full, with drive and dir) which will be used for loading Icon. (if IconType = FromFile)
IconType mouseconstants (Integer) Sets the type of Icon (predefined windows icons and cursors; Custom - for Icon property, FromFile - for IconFile property).
IsBlinking Boolean Read only. Shows if Icon is blinking.
Loops Integer Defines the number of loops.
ToolTipText String Set the text string to be displayed as tooltip.

Back to the top.
Methods:

Method Parameters Description
AboutBox() none Displays AboutBox.
Appear none Displays Icon in the system tray.
Blink none Makes icon blink. Call again to stop blinking.
MoveRight none Moves icon to the right position in icon raw.
Remove none Removes icon from the system tray.

Back to the top.
Events:

Event Parameters Description
BlinkDone Loops as Integer Occurs when mouse appears over the button.
Break ErrCode as Integer, Errmsg as String.
1, "Image isn't of icon or cursor type"
2, "Error initializing timer."
3, "Error killing timer."
4, "Icon already is in the system tray."
5, "Error loading from file."
Occurs when mouse leaves the button.
Click none The same as standard Click event.
DblClick none The same as standard DblClick event.
MouseOver X as Long, Y as Long - screen-based coordinates. Occurs when the mouse cursor is over the icon.
MousePress Button as Integer
Left button = 1, Rightbutton = 2,
Middle button = 4.
Occurs when one of the mouse buttons is released.
MouseRel Button as Integer Occurs when one of the mouse buttons is released.
StopBlink none Occurs if the number of blinks = Loops (not for Loops = 0).

Back to the top.
System requirements:

    - Windows 95/NT
    - MFC DLLs (mfc42.dll, msvcrt.dll, oleaut32.dll, ...)

History (bugs, updates):

Version Date (dd/mm/yy) Description
1.1 20/06/98
  • Removed BUG with IsBlinking. Now IsBlinking updates after Blink() method (thanx to flood@fcol.com);
  • Help style changed to HTML-based;
  • Files size reduced by removing my foto from AboutBox.
1.0 25/05/98 The fisrt release.

Back to the top.